﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DeviceProperty.cs" company="Matthias Friedrich">
//   Copyright © Matthias Friedrich 2009
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace DeviceManagement
{
	using System;

	public class DeviceProperty : IDeviceProperty
	{
		private readonly object value;

		public DeviceProperty(DevicePropertyKey key, object value)
		{
			if (key == null)
			{
				throw new ArgumentNullException("key");
			}

			this.Key = key;
			this.value = value;
		}

		public DevicePropertyKey Key { get; private set; }

		public virtual object Value
		{
			get
			{
				return this.value;
			}
		}
	}
}